package day04;

import java.util.Scanner;
//命令解析程序
public class CommandBySwitch {
    public static void main(String[] args) {
        int mun = 0,a = 1;
        while (mun < a ) {
            Scanner scan = new Scanner(System.in);
            System.out.println("请选择功能:1存款 2.取款 3.转账 4.退出");
            int command = scan.nextInt();
            switch (command) {
                case 1:
                    System.out.println("存款业务...");
                    break;
                case 2:
                    System.out.println("取款业务...");
                    break;
                case 3:
                    System.out.println("转账业务...");
                    break;
                case 4:
                    a=0;
                    System.out.println("退出成功");
                    break;
                default:
                    System.out.println("请输入正确得功能指令");
            }
        }











    }
}
